from rest_framework.serializers import ModelSerializer

from home.models import TopModel, BannerModel


class TopSer(ModelSerializer):
    class Meta:
        model = TopModel
        fields = '__all__'

class BannerSer(ModelSerializer):
    class Meta:
        model = BannerModel
        fields = ['id','title','img','link']